package com.yihusitian.zsxq.pojo.dto;

import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Topic {

    private Long topic_id;

    private Group group;

    private String type;

    private Talk talk;

    private Boolean answered;

    private Boolean silenced;

    private Integer likes_count;

    private Integer rewards_count;

    private Integer comments_count;

    private Integer reading_count;

    private Integer readers_count;

    private Boolean digested;

    private Boolean sticky;

    private String create_time;

    private String modify_time;

    private UserSpecific user_specific;

    private Answer answer;

    private Question question;

    private List<Like> latest_likes;

    private List<Comment> show_comments;

    private Task task;

    public Date getCreateTime() {
        return DateHandler.parseDate(this.create_time);
    }

    public Date getModifyTime() {
        return DateHandler.parseDate(this.modify_time);
    }
}
